<?php

use \think\facade\Env;

return [
    'name'  => Env::get('name'),
    'store' => [
        'packagePrice' => \app\common\service\Redis::getStoreConfig('packagePrice'),
    ],
    'wx'    => [
        #--------------小程序XX ------------------#
        'appid'                 => '',
        #APP APPID
        'app_id'                => '',
        #公众号 APPID
        'miniapp_id'            => Env::get('wx_mini.app_id'),
        #小程序 APPID
        'miniapp_secret'        => Env::get('wx_mini.app_secret'),
        'mch_id'                => Env::get('wx_shh.mchid'),
        'key'                   => Env::get('wx_shh.api'),
        'pay_notify_url'        => Env::get('app.host') . '/index.php/notify/wxPay',
        'refund_notify_url'     => Env::get('app.host') . '/index.php/notify/wxRefund',
        'cert_client'           => app_path('common/cert') . 'apiclient_cert.pem',
        'cert_key'              => app_path('common/cert') . 'apiclient_key.pem',
        'log'                   => [
            // optional
            'file'     => runtime_path() . 'logs/wechat.log',
            'level'    => 'info',
            // 建议生产环境等级调整为 info，开发环境为 debug
            'type'     => 'single',
            // optional, 可选 daily.
            'max_file' => 30,
            // optional, 当 type 为 daily 时有效，默认 30 天
        ],
        'http'                  => [
            // optional
            'timeout'         => 5.0,
            'connect_timeout' => 5.0,
            // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
        ],
        //        'mode'                  => 'dev',
        // 微信使用code换取用户openid及session_key的url地址
        'mini_login_url'        => 'https://api.weixin.qq.com/sns/jscode2session?' . 'appid=%s&secret=%s&js_code=%s&grant_type=authorization_code',
        // 微信获取access_token的url地址
        'mini_access_token_url' => 'https://api.weixin.qq.com/cgi-bin/token?' . 'grant_type=client_credential&appid=%s&secret=%s',
    ],
    'ali'   => [
        'app_id'         => '2016082000295641',
        'notify_url'     => 'http://yansongda.cn/notify.php',
        'return_url'     => 'http://yansongda.cn/return.php',
        'ali_public_key' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuWJKrQ6SWvS6niI+4vEVZiYfjkCfLQfoFI2nCp9ZLDS42QtiL4Ccyx8scgc3nhVwmVRte8f57TFvGhvJD0upT4O5O/lRxmTjechXAorirVdAODpOu0mFfQV9y/T9o9hHnU+VmO5spoVb3umqpq6D/Pt8p25Yk852/w01VTIczrXC4QlrbOEe3sr1E9auoC7rgYjjCO6lZUIDjX/oBmNXZxhRDrYx4Yf5X7y8FRBFvygIE2FgxV4Yw+SL3QAa2m5MLcbusJpxOml9YVQfP8iSurx41PvvXUMo49JG3BDVernaCYXQCoUJv9fJwbnfZd7J5YByC+5KM4sblJTq7bXZWQIDAQAB',
        // 加密方式： **RSA2**
        'private_key'    => 'MIIEpAIBAAKCAQEAs6+F2leOgOrvj9jTeDhb5q46GewOjqLBlGSs/bVL4Z3fMr3p+Q1Tux/6uogeVi/eHd84xvQdfpZ87A1SfoWnEGH5z15yorccxSOwWUI+q8gz51IWqjgZxhWKe31BxNZ+prnQpyeMBtE25fXp5nQZ/pftgePyUUvUZRcAUisswntobDQKbwx28VCXw5XB2A+lvYEvxmMv/QexYjwKK4M54j435TuC3UctZbnuynSPpOmCu45ZhEYXd4YMsGMdZE5/077ZU1aU7wx/gk07PiHImEOCDkzqsFo0Buc/knGcdOiUDvm2hn2y1XvwjyFOThsqCsQYi4JmwZdRa8kvOf57nwIDAQABAoIBAQCw5QCqln4VTrTvcW+msB1ReX57nJgsNfDLbV2dG8mLYQemBa9833DqDK6iynTLNq69y88ylose33o2TVtEccGp8Dqluv6yUAED14G6LexS43KtrXPgugAtsXE253ZDGUNwUggnN1i0MW2RcMqHdQ9ORDWvJUCeZj/AEafgPN8AyiLrZeL07jJz/uaRfAuNqkImCVIarKUX3HBCjl9TpuoMjcMhz/MsOmQ0agtCatO1eoH1sqv5Odvxb1i59c8Hvq/mGEXyRuoiDo05SE6IyXYXr84/Nf2xvVNHNQA6kTckj8shSi+HGM4mO1Y4Pbb7XcnxNkT0Inn6oJMSiy56P+CpAoGBAO1O+5FE1ZuVGuLb48cY+0lHCD+nhSBd66B5FrxgPYCkFOQWR7pWyfNDBlmO3SSooQ8TQXA25blrkDxzOAEGX57EPiipXr/hy5e+WNoukpy09rsO1TMsvC+v0FXLvZ+TIAkqfnYBgaT56ku7yZ8aFGMwdCPL7WJYAwUIcZX8wZ3dAoGBAMHWplAqhe4bfkGOEEpfs6VvEQxCqYMYVyR65K0rI1LiDZn6Ij8fdVtwMjGKFSZZTspmsqnbbuCE/VTyDzF4NpAxdm3cBtZACv1Lpu2Om+aTzhK2PI6WTDVTKAJBYegXaahBCqVbSxieR62IWtmOMjggTtAKWZ1P5LQcRwdkaB2rAoGAWnAPT318Kp7YcDx8whOzMGnxqtCc24jvk2iSUZgb2Dqv+3zCOTF6JUsV0Guxu5bISoZ8GdfSFKf5gBAo97sGFeuUBMsHYPkcLehM1FmLZk1Q+ljcx3P1A/ds3kWXLolTXCrlpvNMBSN5NwOKAyhdPK/qkvnUrfX8sJ5XK2H4J8ECgYAGIZ0HIiE0Y+g9eJnpUFelXvsCEUW9YNK4065SD/BBGedmPHRC3OLgbo8X5A9BNEf6vP7fwpIiRfKhcjqqzOuk6fueA/yvYD04v+Da2MzzoS8+hkcqF3T3pta4I4tORRdRfCUzD80zTSZlRc/h286Y2eTETd+By1onnFFe2X01mwKBgQDaxo4PBcLL2OyVT5DoXiIdTCJ8KNZL9+kV1aiBuOWxnRgkDjPngslzNa1bK+klGgJNYDbQqohKNn1HeFX3mYNfCUpuSnD2Yag53Dd/1DLO+NxzwvTu4D6DCUnMMMBVaF42ig31Bs0jI3JQZVqeeFzSET8fkoFopJf3G6UXlrIEAQ==',
        // 使用公钥证书模式，请配置下面两个参数，同时修改ali_public_key为以.crt结尾的支付宝公钥证书路径，如（./cert/alipayCertPublicKey_RSA2.crt）
        // 'app_cert_public_key' => './cert/appCertPublicKey.crt', //应用公钥证书路径
        // 'alipay_root_cert' => './cert/alipayRootCert.crt', //支付宝根证书路径
        'log'            => [ // optional
                              'file'     => './logs/alipay.log',
                              'level'    => 'info',
                              // 建议生产环境等级调整为 info，开发环境为 debug
                              'type'     => 'single',
                              // optional, 可选 daily.
                              'max_file' => 30,
                              // optional, 当 type 为 daily 时有效，默认 30 天
        ],
        'http'           => [ // optional
                              'timeout'         => 5.0,
                              'connect_timeout' => 5.0,
                              // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
        ],
        'mode'           => 'dev',
        // optional,设置此参数，将进入沙箱模式
    ],
    'sf'    => [
        'fq_id'     => 'TYXLKX',
        'fq_secret' => 'yXtsdbw0Sb9ij7W2euPk56kVBNujVG3P',
    ],
];